using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace LogAnalyzerIIS.Helpers
{
	class ThreadingHelper
	{
		// delegates to update form controls from another thread
		public delegate void VoidDelegate();
		public delegate void ProgressBarDelegate(ProgressBar progressBar);
		public delegate void LabelDelegate(Label label, string parameter);
		public delegate void ListBoxDelegate(ListBox listBox, object item);

		public static string FormatLogRow(string statusValue)
		{
			return DateTime.Now.ToLongTimeString() + " " + statusValue;
		}
	}
}
